﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="review.aspx.cs" Inherits="HY.WEB.OA._review" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>

<form id="form1" runat="server">

<ext:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
ShowBorder="false" EnableBackgroundColor="true" >
<Rows>

<ext:FormRow ID="FormRow1" runat="server">
<Items>

<ext:DropDownList ID="ddlfiled" runat="server" Label="查询字段"  >
</ext:DropDownList>

<ext:DropDownList ID="ddlwhere" runat="server" Label="查询条件"  >
</ext:DropDownList>

<ext:TwinTriggerBox ID="txt" runat="server" ShowLabel="false" EmptyText="关键字"
 Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="ttbSearchMessage_Trigger2Click"
　OnTrigger1Click="ttbSearchMessage_Trigger1Click">
</ext:TwinTriggerBox>

    <ext:Button ID="btnSearch" Icon="Zoom" runat="server"  Text="高级查询" >
    </ext:Button>
</Items>
</ext:FormRow>

</Rows>
</ext:Form>
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel2"  />
    
    <ext:Panel ID="Panel2" runat="server" Height="250px" ShowBorder="True" AutoWidth="true"  
        Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Left" BoxConfigPadding="0"
        BoxConfigChildMargin="0 0 0 0" ShowHeader="True" Title="审批流程设定" >
      
        <Items>     
       
  <ext:SimpleForm ID="SimpleForm1" BodyPadding="5px" Width="300px" EnableBackgroundColor="true"
        Title="添加｜编辑" runat="server" AutoScroll="true" >
         <Items>
             <ext:HiddenField ID="hidsid" runat="server">
             </ext:HiddenField>    
             
                   <ext:TextBox ID="txttitle" runat="server" Label="标题" Text=""  Required="true" ShowRedStar="true">     </ext:TextBox>    
             <ext:TextBox ID="txtord" runat="server" Label="审批顺序" Text=""  Required="true" 
                 ShowRedStar="true" CompareType="Int">    </ext:TextBox>
   
   <ext:DropDownList ID="ddlrole" runat="server" Label="审批角色" >             
             </ext:DropDownList>          

             <ext:DropDownList ID="ddluser" runat="server" Label="审批人(可选项)">             
             </ext:DropDownList>             
           <ext:Button ID="btsave" runat="server" Text="保存" OnClick="btsave_Click">
             </ext:Button>
                       </Items>
    </ext:SimpleForm>
           
      
          
  <ext:Panel ID="Panel4" Title="审批流程 " EnableBackgroundColor="true" BoxFlex="2" runat="server"
                BodyPadding="5px" BoxMargin="0" ShowBorder="true" ShowHeader="true">                 
        <Items>                                                   
            <ext:Grid ID="Grid3" Title="审批流程"     PageSize="12" ShowBorder="true" 
                ShowHeader="true"  AllowPaging="true"
        runat="server"  DataKeyNames="retitle"  AutoPostBack="true"  
        OnPageIndexChange="Grid3_PageIndexChange" EnableRowNumber="True" onrowcommand="Grid3_RowCommand" 
                OnSort="Grid3_Sort" AnchorValue="100% -36px" >      
        <Columns>
            <ext:TemplateField Width="60px"  HeaderText="编号" >
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:LinkButtonField Width="60px" CommandName="sub" HeaderText="审批流程"  DataTextField="retitle"  />             
                  
        </Columns>
    </ext:Grid>          


                </Items>

            </ext:Panel>

          <ext:Panel ID="Panel3" Title="详细流程" EnableBackgroundColor="true" BoxFlex="2" runat="server" 
                BodyPadding="5px" BoxMargin="0" ShowBorder="true"  Height="100" ShowHeader="true">          
                <Items>
                                       
            <ext:Grid ID="Grid2" Title="详细流程"    Width="650px"   AutoScroll="true"    PageSize="12" ShowBorder="true" ShowHeader="true"  AllowPaging="true"
        runat="server" EnableCheckBoxSelect="True"  DataKeyNames="sid"     onrowcommand="Grid2_RowCommand" 
        OnPageIndexChange="Grid2_PageIndexChange" EnableRowNumber="True" OnSort="Grid2_Sort" >
                <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                    <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" OnClick="btnDelete_Click" runat="server">
                    </ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Columns>
            <ext:TemplateField Width="60px"  HeaderText="编号" >
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                </ItemTemplate>
            </ext:TemplateField>

            <ext:BoundField Width="60px" DataField="retitle" HeaderText="审批流程" />
            <ext:BoundField Width="60px" DataField="reord" HeaderText="顺序"  />
              <ext:BoundField Width="60px" DataField="role" HeaderText="审批角色"  />
             <ext:BoundField Width="60px" DataField="renm" HeaderText="审批人"  />             
           <ext:LinkButtonField Width="60px" CommandName="edit" Icon="TableEdit"   HeaderText="修改" /> 
                  
        </Columns>
    </ext:Grid>          


                </Items>

            </ext:Panel>

 
        </Items>
    </ext:Panel>
     <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        OnClose="Window1_Close" Target="Top" IsModal="True" Width="750px" Height="509px">
    </ext:Window>
    <br />
    <br />
    <br />
    <br />
    <br />
    </form>
</body>
</html>
